<p id="msg">Aguarde captando sua localização</p>

<form action="javascript: void(0);" onSubmit="calcRoute();">
    <div>
        <input placeholder="Origem" type="text" id="endereco">
    </div>
    <div>
        <input placeholder="Destino" type="hidden" id="destino" value=<?php echo ($latitude).($longitude); ?>>
    </div>
    <input type="button" value="Como Chegar" id="confirmarRota" onclick="calcRoute()">
</form>
 
<div id="mapview">
    <div id="map_canvas" style="float: left; width: 100%; height: 340px;">
    </div>
    <div class="direcao" style="float: left; width: 100%; height: 340px; overflow: scroll;">
        <div id="directionsPanel" style="width: 100%;height 100%"></div>
</div>
</div>
